const rules = {
  name: [
    { required: true, message: '请输入购置资产名称', trigger: 'blur' }
  ],
  cid: [
    { required: true, message: '请选择所属分类', trigger: 'change' }
  ],
  brandId: [
    { required: true, message: '请选择所属品牌', trigger: 'change' }
  ],
  price: [
    { required: true, message: '价格不得为空', trigger: 'change' },
    { type: 'number', message: '价格必须为数值', trigger: 'change' }
  ],
  number: [
    { required: true, message: '数量不得为空', trigger: 'change' },
    { type: 'number', message: '数量必须为数值', trigger: 'change' }
  ]
}

export default rules
